/*
 * SPI.h
 *
 *  Created on: 12-01-2012
 *      Author: mhl
 */

#ifndef SPI_H_
#define SPI_H_

#include "PeripheralHeaderIncludes.h"



void SPIInit();
void ForceReset();
void ClrReset();
void SetReset();
void CLKPolPh(Uint16 polarity, Uint16 phase);
void ModeSelect(Uint16);
void TalkMode(Uint16);
void INTEnable(Uint16);
void DataFormat(Uint16);
void BaudSet(Uint16);
void DebRun();
void SPISTESet();
void LoopbackMode(Uint16);
Uint16 ReadData();
Uint16 TransmitData(Uint16);
void SPI_GPIO_Setup();
void CS_Conf();
void CS_Set(int);
interrupt void RecvInt();
Uint16 getRxDat();
#endif /* SPI_H_ */
